import json

items = json.loads('[{"id":1}, {"id":2}]')
for item in items:
    print(item.get("id"))

def testAction(a, b):
    """返回 a+b

    Args:
        a int
        b int
    Returns:
       int
    """
    return a+b